package com.hand.test.mapper;/**
 * @author Estelle@앙수청
 * @date 2019/7/20 10:57
 */

import com.hand.test.domain.Matter;
import com.hand.test.domain.Stockin;
import com.hand.test.domain.Stockout;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  @author Estelle@앙수청
 *  @date 2019/7/20 10:57
 */
@Mapper
public interface StockInAndOutMapper {

    Matter queryMatterExistByStore(@Param("id") Integer id);

    Integer addStockin(Stockin stockin);

    void increMatterStockCount(Stockin stockin);

    Integer addStockout(Stockout stockout);

    void decreMatterStockCount(Stockout stockout);

    List<Stockin> queryAllStockin();

    List<Stockin> queryAllStockout();
}
